package application.model.vo
{
	[Bindable]
	public class Post
	{
		public var id:String = "";
		public var author:String = "";
		public var email:String = "";
		public var url:String = "";
		public var date:String = "";
		public var message:String = "";
		
		public function Post(id:String, author:String, email:String, url:String, date:String, message:String)
		{
			if ( id != null ) this.id = id;
			if ( author != null ) this.author = author;
			if ( email != null ) this.email = email;
			if ( url != null ) this.url = url;
			if ( date != null ) this.date = date;
			if ( message != null ) this.message = message;
		}
		
		public function get isValid():Boolean
		{
			return author != '' && message != '';
		}
	}
}